<%--
  Created by IntelliJ IDEA.
  User: qiliping
  Date: 15/11/22
  Time: 下午12:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="paging" uri="paging-taglib" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>


<html>
<head>
    <title>基金赎回日列表</title>
</head>
<body>
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            基金管理
            <small>基金赎回日列表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/main">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="${ctx}/product">
                    基金管理
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="javascript:void(0);">
                    ${productName} 赎回日列表
                </a>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<!-- END PAGE HEADER-->
<!------内容区----->
<div class="main">

    <div class="row">
        <div class="col-md-12">
            <div class="text-right">
                <span style="color:red;">${message}</span>
                <a href="${ctx}/product/redeem_add?id=${productId}" class="btn blue">添加赎回日</a>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <table class="table table-striped table-hover zqy-table">
                <thead>
                <tr>

                    <th>基金名称</th>
                    <th>赎回开始日</th>
                    <th>赎回结束日</th>
                    <th>创建日期</th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="item" items="${list}">
                    <tr>
                        <td>${item.productName}</td>
                        <td>
                            <fmt:formatDate value="${item.beginDate}" pattern="yyyy-MM-dd"/>
                        </td>
                        <td>
                            <fmt:formatDate value="${item.endDate}" pattern="yyyy-MM-dd"/>
                        </td>
                        <td>
                            <fmt:formatDate value="${item.createOn}" pattern="yyyy-MM-dd HH:mm"/>
                        </td>
                        <td>
                            <a href="/product/redeem_delete?id=${item.id}" onclick="return confirm('确定要删除吗?');">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
            <div class="text-center">
                <ul class="pagination">
                   <%-- <paging:paging pageIndex="${pageIndex}" totalPage="${totalPage}" href="${ctx}/user"
                                   htmlTag="li"></paging:paging>--%>

                </ul>
            </div>

        </div>
    </div>

    </form>
</div>
<!------[end]内容区----->

</body>
</html>